public Election::addCandidatesFromJson
Description
php
public Election->addCandidatesFromJson ( string $input ): array
Import candidates from a JSON source.
Parameter
input: string
JSON string.
Return value
(array
) List of newly registered candidate objects.
Throws:
CandidateExistsException